package com.tsubaki.mapper;

import com.tsubaki.entity.School;
import com.tsubaki.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author tsubaki
 * @since 2022-01-17
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    List<User> getAll();

    List<User> getAllTeacher();

    List<User> getAllStudent();

    List<User> getAllJW();

    User getUserByUsername(String username);

    List<User> lookPerson(String username, String  roleName);

    List<User> getStudentListByCourseId(Integer courseId);

    List<User> getAllTeachersBySchoolId(Integer schoolId);

    List<User> getAllNone();
}
